<?php

namespace App\Models;


use Laravel\Passport\HasApiTokens;
use Illuminate\Foundation\Auth\user as AuthApiUser;

class ApiUser extends  AuthApiUser
{
    use HasApiTokens;
    protected $guarded=[];

    public function setPasswordAttribute($value)
    {
        $this->attributes['password'] = empty($value) ? '': bcrypt($value);
    }

}
